package org.dragonnova.meetingapp.app.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.ArrayList;

/**
 * Created by hucn on 2016/1/13.
 * Description:
 */
public class FragmentViewPagerAdapter extends FragmentPagerAdapter {

    private ArrayList<Fragment> mFragmentList;

    public FragmentViewPagerAdapter(FragmentManager fm, ArrayList<Fragment> FragmentList) {
        super(fm);
        this.mFragmentList = FragmentList;
    }

    @Override
    public Fragment getItem(int position) {
        return mFragmentList.get(position);
    }

    @Override
    public int getCount() {
        return mFragmentList.size();
    }
}
